<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let obj={
            name:"henq",
            age:98,
            loves:["足球","汽车"],
            user:{
                title:"经理",
                job:"工程师"
            }
        }
        console.log(obj.loves[1])
        console.log(Reflect.get(obj,["loves",0]))
        console.log(Reflect.get(Reflect.get(obj,"user"),"job"))

    </script>
</body>
</html>